module.exports = function(app) {
    var express = require('express');
    var isLogged = require('./isLogged.js');
    var login = require('./login.js');
    var register1 = require('./register1.js');
    var register2 = require('./register2.js');
    app.use(/\/(?!login)(?!register).*/, isLogged);
    app.use('/login', login);
    app.use('/register1', register1);
    app.use('/register2', register2);
};
